package wzh.crm.ui.opportunity;

import android.widget.TabHost;

import wzh.crm.R;
import wzh.crm.bl.BL;
import wzh.crm.ui.OverviewActivity;
import wzh.crm.vo.OpportunityVo;

/**
 * Created by wangzehao on 2016/6/19.
 */
public class OpportunityOverviewActivity extends OverviewActivity<OpportunityVo> {
    @Override
    protected void displayModel() {
        super.onResume();
        setTitle(model.get商机标题());
        setDetails(BL.opportunityBL().getDetailInBackground(model));
    }

    protected void initTabHost(TabHost tabHost) {
        tabHost.addTab(tabHost.newTabSpec("tab跟进记录").setIndicator("跟进记录").setContent(R.id.tab跟进记录));
        tabHost.addTab(tabHost.newTabSpec("tab产品").setIndicator("产品").setContent(R.id.tab产品));
        tabHost.addTab(tabHost.newTabSpec("tab合同").setIndicator("合同").setContent(R.id.tab合同));
    }
}
